//
//  RCTConvert+PermissionTypes.m
//  YuanXinSystemPermissions
//
//  Created by 晏德智 on 2017/2/7.
//  Copyright © 2017年 晏德智. All rights reserved.
//

#import "RCTConvert+PermissionType.h"

@implementation RCTConvert (PermissionType)

RCT_ENUM_CONVERTER(PermissionType, (@{ @"location" : @(RNPTypeLocation),
                                @"camera" : @(RNPTypeCamera),
                                @"microphone" : @(RNPTypeMicrophone),
                                @"photo" : @(RNPTypePhoto),
                                @"contacts" : @(RNPTypeContacts),
                                @"event" : @(RNPTypeEvent),
                                @"reminder" : @(RNPTypeReminder),
                                @"bluetooth" : @(RNPTypeBluetooth),
                                @"notification" : @(RNPTypeNotification),
                                @"backgroundRefresh": @(RNPTypeBackgroundRefresh)
                                }),
                   RNPTypeUnknown, integerValue)

@end
